package com.huiminpay.transaction.convert;

import com.huiminpay.transaction.dto.OrderResultDTO;
import com.huiminpay.transaction.dto.PayOrderDTO;
import com.huiminpay.transaction.entity.PayOrder;
import com.huiminpay.transaction.vo.OrderConfirmVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PayOrderConvert {

    PayOrderConvert INSTANCE = Mappers.getMapper(PayOrderConvert.class);

    OrderResultDTO request2dto(PayOrderDTO payOrderDTO);

    PayOrderDTO dto2request(OrderResultDTO OrderResult);

    OrderResultDTO entity2dto(PayOrder entity);

    PayOrder dto2entity(OrderResultDTO dto);
    PayOrder dto2entitya(PayOrderDTO dto);

    PayOrderDTO entity2dtoa(PayOrder entity);

    PayOrderDTO vo2dto(OrderConfirmVO vo);

}
